Defines scripts to be attached to the application and any new documents. When executed, this script attaches the application script. The application script traps the 'make' event and attaches the document script to any new documents.